﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebUI.constant;
using WebUI.dto;
using WebUI.Units;

namespace WebUI.Controllers
{
    public class ErrorController: Controller
    { 
        public JsonResult Error404()
        {
            return Json(Result<Object>.Build(
                CodeEnum.ERROR_404
                , CodeDictionary.GetCodeMsg(CodeEnum.ERROR_404)
                , null
                , false));
        }
        public JsonResult Error500()
        {
            return Json(Result<Object>.Build(
                CodeEnum.ERROR_500
                , CodeDictionary.GetCodeMsg(CodeEnum.ERROR_500)
                , null
                , false));
        }
    }
}